package com.hotel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hotel.dto.RoomInventoryDTO;
import com.hotel.entity.RoomInventory;

import java.time.LocalDateTime;

public interface RoomInventoryService extends IService<RoomInventory> {
    /**
     * 获取指定日期房间库存
     * @param date
     * @param roomTypeId
     * @return
     */
    RoomInventory getByDateAndRoomTypeId(LocalDateTime date, Integer roomTypeId);

    /**
     * 更新房间库存
     * @param roomInventoryDTO
     */
    void updateRoomInventory(RoomInventoryDTO roomInventoryDTO);
}
